package com.njym.java.security.app.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;


/**
 * 
 * 
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-12-18 17:42:40
 */
@Table(name = "family_relationship")
public class FamilyRelationship implements Serializable {
	private static final long serialVersionUID = 1L;
	
	    //
    @Id
    private Integer id;
	
	    //关系名称
    @Column(name = " relation_name")
    private String relationName;
	
	    //用户ID
    @Column(name = "user_id")
    private Integer userId;
	
	    //家庭ID
    @Column(name = "family_type_id")
    private Integer familyTypeId;
	
	    //逻辑删除
    @Column(name = "deleted")
    private Integer deleted;

    @Column(name = "change_id")
	private int changeId;

	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：关系名称
	 */
	public void setRelationName(String relationName) {
		this.relationName = relationName;
	}
	/**
	 * 获取：关系名称
	 */
	public String getRelationName() {
		return relationName;
	}
	/**
	 * 设置：用户ID
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户ID
	 */
	public Integer getUserId() {
		return userId;
	}
	/**
	 * 设置：家庭ID
	 */
	public void setFamilyTypeId(Integer familyTypeId) {
		this.familyTypeId = familyTypeId;
	}
	/**
	 * 获取：家庭ID
	 */
	public Integer getFamilyTypeId() {
		return familyTypeId;
	}
	/**
	 * 设置：逻辑删除
	 */
	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}
	/**
	 * 获取：逻辑删除
	 */
	public Integer getDeleted() {
		return deleted;
	}

	public int getChangeId() { return changeId; }

	public void setChangeId(int changeId) { this.changeId = changeId; }
}
